package com.micro.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "micro-service-email", fallback = EmailFallback.class, path = "/email")
public interface EmailServiceFeignClient {

    @GetMapping("/{email}/{code}")
    public Integer send(@PathVariable String email, @PathVariable String code);
}
